# coding=utf-8
from zentao.zentao import ZenTao
from zentao.casedata import CaseData

if __name__ == '__main__':
    # 文件路径
    # path = '/Users/hepengchong/Desktop/python/xmind_upload/导入用例至禅道用例库模版文件.xmind'
    # path = '/Users/hepengchong/Documents/Xmind/ERP_V2.2.xmind'
    path = '/Users/hepengchong/Downloads/地推宝.xmind'
    # 文件类型 1：用例库 2、用例
    import_type = '2'
    case_data = ZenTao(import_type, path).check_case_type()
    # 导入禅道至选择的文件类型的地方
    CaseData.sync_zt_case(case_data)
    print('导入成功')
